package com.example.myapplication;

//封装水果类实体，该实体实际上是ListView项中的数据内容

public class Fruit{
    private String name;
    private int imageId;

    public Fruit(String name,int imageId){
        this.name= name;
        this.imageId = imageId;
    }

    public String getName() {
        return name;
    }

    public int getImageId() {
        return imageId;
    }
}
